<?php
//Index
require APPPATH . './third_party/UI/Ui.php';

$themeurl = site_url() . 'public/';
$ui = new Ui('http://localhost/Wicityadmin/');
$ui->init($data);
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="format-detection" content="telephone=no">

        <script type="text/javascript" src="<?php echo $themeurl ?>js/jquery-2.1.3.min.js"></script>
        <script type="text/javascript" src="<?php echo $themeurl ?>js/spin.min.js"></script>
        <script type="text/javascript" src="<?php echo $themeurl ?>js/jquery.tap.min.js"></script>
        <script type="text/javascript" src="<?php echo $themeurl ?>js/ui.js"></script>
        <script type="text/javascript" src="<?php echo $themeurl ?>js/swiper.min.js"></script>

        <link href="<?php echo $themeurl ?>css/style.css" rel="stylesheet"/>
<!--        <script src="http://connect.facebook.net/en_US/all.js"></script>-->
        <script type="text/javascript">
            var account = 'http://account.wicity.vn/';
            var baseurl = '<?php echo site_url() ?>';
            var mac = '<?php echo isset($mac) ? $mac : 0 ?>';
            var nasid = '<?php echo isset($nasid) ? $nasid : 0 ?>';
            var name_device = '<?php echo isset($name_devide) ? $name_devide : 0 ?>';
            var authentication_link = '<?php echo isset($authentication_link) ? $authentication_link : 0 ?>';
            var id_campaign = 0;
            var codefb = '<?php echo isset($codefb) ? $codefb : 0 ?>';
            var loginfb = <?php echo isset($loginFB) ? json_encode($loginFB) : '0' ?>;
            var facebookconnected = '<?php echo isset($loginFB['status']) ? $loginFB['status'] : 0 ?>';
            var id_place = <?php echo $id_place ?>;
            var landing_page = '';
            var type_time_session = 0;
            var last_action = <?php echo $lastaction == '' ? '0' : json_encode($lastaction) ?>;
        </script>
        <script type="text/javascript" src="<?php echo $themeurl ?>js/lib.js"></script>
        <script type="text/javascript" src="<?php echo $themeurl ?>js/init.js"></script>
<?php $ui->theHeader(); ?>
        <link href="<?php echo $themeurl ?>/css/media.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
<?php $ui->theBody() ?>
    </body>
</html>



